
package com.yanboo.logging.domain;

import com.yanboo.common.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.annotations.UpdateTimestamp;
import jakarta.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * 上传成功后，存储结果
 */
@Data
@Entity
@Table(name = "tool_qiniu_content")
public class QiniuContent  extends BaseEntity implements Serializable {

    @Column(name = "name",length = 180)
    @Schema(description = "文件名")
    private String key;

    @Schema(description = "空间名")
    private String bucket;

    @Schema(description = "大小")
    private String size;

    @Schema(description = "文件地址")
    private String url;

    @Schema(description = "文件类型")
    private String suffix;

    @Schema(description = "空间类型：公开/私有")
    private String type = "公开";

    @UpdateTimestamp
    @Schema(description = "创建或更新时间")
    @Column(name = "update_time")
    private Timestamp updateTime;
}
